package com.ro0tsh3ll.service.impl;

import com.ro0tsh3ll.dao.CountDAO;
import com.ro0tsh3ll.dao.GoogleIPDAO;
import com.ro0tsh3ll.model.Count;
import com.ro0tsh3ll.model.GoogleIP;
import com.ro0tsh3ll.service.KickGoogleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2014/6/13.
 */
@Service
public class KickGoogleServiceImpl implements KickGoogleService {

    @Autowired
    GoogleIPDAO googleIPDAO;

    @Autowired
    private CountDAO countDAO;

    @Override
    public List<GoogleIP> ipSearch() {
        return googleIPDAO.ipSearch();
    }

    public int insertInto(GoogleIP googleIP) {
        return googleIPDAO.insertInto(googleIP);
    }

    @Override
    public int levelUp(int id) {
        return googleIPDAO.levelUp(id);
    }

    @Override
    public void CountUp(String type) {
        countDAO.upDateCount(type);
    }
}
